<template>
  <div class="search">
    <form action="/">
      <van-search
        v-model="value"
        show-action
        placeholder="搜索医生、医院、科室等"
        @search="onSearch"
        @cancel="onCancel"
      />
    </form>
  </div>
</template>
<script>
import { Toast } from 'vant'
export default {
  data: () => ({
    value: ''
  }),
  methods: {
    onSearch(val) {
      Toast(val)
    },
    onCancel() {
      this.$router.go(-1)
    }
  },
  mounted() {
  }
}
</script>
<style lang="scss" scoped>
</style>
